home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / dll_gen / vbdllcom / vbdllcom.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  2KB  |  54 lines

  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. /*------------------------------------------------------------------------*/
  5. /*      Useful things*/
  6. /*------------------------------------------------------------------------*/
  7. #ifndef SHORT
  8.         #define SHORT short
  9. #endif
  10. #ifndef USHORT
  11.         #define USHORT unsigned short
  12. #endif
  13. /*------------------------------------------------------------------------*/
  14. /*      Global ReturnTypeDefinition for DLL-LibraryFunktion*/
  15. /*------------------------------------------------------------------------*/
  16. #ifndef DLLAPI
  17.         #define DLLAPI   _far _pascal _export
  18. #endif
  19. /*------------------------------------------------------------------------*/
  20. /*      Global ConstantDefinition*/
  21. /*------------------------------------------------------------------------*/
  22. /*    ReturnConstants*/  
  23. #define    VB_TRUE                -1
  24.  
  25. /*    ErrorConstants*/  
  26. #define ERR_STRUCTSIZE        -2
  27. /*------------------------------------------------------------------------*/
  28. /*      Global TypDefinitions*/
  29. /*------------------------------------------------------------------------*/
  30. typedef double DOUBLE, * NPDOUBLE, FAR * LPDOUBLE;        
  31. typedef struct tagInParam
  32. {              
  33.     USHORT    nTyp;
  34.     DOUBLE     dblZ1,
  35.             dblZ2,
  36.             dblResult;
  37.     
  38.     }     INPARAM, * NPINPARAM, FAR * LPINPARAM;
  39. /*------------------------------------------------------------------------*/
  40. /*      Function Prototypes */
  41. /*------------------------------------------------------------------------*/
  42.  
  43. SHORT DLLAPI VBDllTestProc(HLSTR);    
  44.  
  45. VOID FAR PASCAL GetData(LPSTR, LPINPARAM);
  46.  
  47. VOID FAR PASCAL SetData(LPSTR, LPINPARAM);
  48.  
  49. /*------------------------------------------------------------------------*/
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53.  
  54.